FLAGS=-O2 -Wall
OBJECTS=Matrix.o SquareMatrix.o Vector.o InvertibleMatrix.o Turn.o

tp2: main.cpp $(OBJECTS)
	g++ $(FLAGS) -o $@ $^

bin:main
	mv $< ../bin/

test: test.cpp $(OBJECTS)
	g++ $(FLAGS) -o test $^

%.o:%.cpp %.hpp
	g++ $(FLAGS) -c $<

clean:
	rm -f tp2 $(OBJECTS)
